package com.bwf.fina;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/19 9:54
 * @copyright: 博为峰
 */
//修饰的类不能被继承
public /*final*/ class Base {
    /*
       常量:
       1.必须赋初始值
       2.不能修改
       3.所有字母大写，多个单词用_连接
     */
    public final double PI = 3.1415926;
    public static final String MYSQL_USERNAME = "root";
    public static final String MYSQL_PASSWORD = "123456";

    //修饰的方法不能被子类重写
    public final void m1() {
//        PI = 3.14159265;
        System.out.println("m1");
    }
}
